package com.manong.bookstore.shoppingcart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.manong.common.utils.PageUtils;
import com.manong.bookstore.shoppingcart.entity.ShoppingCartEntity;
import com.manong.bookstore.shoppingcart.vo.SCartProduceInfo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author ljb
 * @email 1074248400@qq.com
 * @date 2020-08-26 21:29:25
 */
public interface ShoppingCartService extends IService<ShoppingCartEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<SCartProduceInfo> ListUserShoppingCart(Integer userID);

    void removeByProductId(Integer usrId, Integer[] id);

    void updateByProduceId(ShoppingCartEntity shoppingCart, Integer userId);

    List<ShoppingCartEntity> listSelectProduce(Integer userId, Integer[] select);

    ShoppingCartEntity ProduceExistOrNot(Integer userId, Integer produceId);
}

